/*
 * @FilePath: /tads/server/app/business/service/dto/tactics_topo.go
 * @Author: wnina0x0
 * @Date: 2025-04-16 14:21:27
 * @Description:
 *
 * 版权信息 : 2025 by wnina0x0, All Rights Reserved.
 */
// /*
//  * @FilePath: /tads/server/app/business/service/dto/scene_topo.go
//  * @Author: wnina0x0
//  * @Date: 2025-04-16 14:21:27
//  * @Description:
//  *
//  * 版权信息 : 2025 by wnina0x0, All Rights Reserved.
//  */
package dto

import (
	"tads/server/app/business/models"
	"time"
)

type TacticsTopoGetRequests struct {
	ID uint `form:"id"`
}

type TacticsTopoInsetRequests struct {
	TacticsTopoDesc string `json:"tactics_desc"`
	TacticsTopoData string `json:"tactics_topo_data"`
	TacticsId       uint   `json:"tactics_id"`
}

func (s *TacticsTopoInsetRequests) Generate(models *models.TacticsTopo) {
	models.TacticTopoDesc = s.TacticsTopoDesc
	models.TacticTopoData = s.TacticsTopoData
	models.Creator = "admin"
	models.CreateTime = time.Now()
	models.Updater = "admin"
	models.UpdateTime = time.Now()
}

type TacticsTopoUpdateRequests struct {
	ID              uint   `json:"id"`
	TacticsTopoDesc string `json:"tactics_desc"`
	TacticsTopoData string `json:"tactics_topo_data"`
}

func (s *TacticsTopoUpdateRequests) Generate(models *models.TacticsTopo) {
	models.TacticTopoDesc = s.TacticsTopoDesc
	models.TacticTopoData = s.TacticsTopoData
	models.Updater = "admin"
	models.UpdateTime = time.Now()
}
